﻿@model IEnumerable<InformationCenter.Models.ColumnList>

@{
    ViewBag.Title = "Index";
}

<section class="wrapper site-min-height">
    <!-- page start-->
    <section class="panel">
        <header class="panel-heading">
            栏目管理
        </header>
        <div class="panel-body">
            <div class="adv-table editable-table ">
                <div class="clearfix">
                    <div class="btn-group">
                        @Html.ActionLink("Create New", "Create", "", new { @class = "btn btn-danger" })
                    </div>
                </div>
                    <br/>
                <div class="space15"></div>
                <table class="table table-hover table-bordered">
                    <thead>
                        <tr>
                            <th ><i class="fa fa-bookmark"></i>
                                @Html.DisplayNameFor(model => model.Name)
                            </th>
                            <th><i class="fa fa-question-circle"></i>
                                @Html.DisplayNameFor(model => model.Seq)
                            </th>
                            <th><i class="fa fa-picture-o"></i>
                                @Html.DisplayNameFor(model => model.Icon)
                            </th>
                            <th><i class="fa fa-unlink"></i>
                                @Html.DisplayNameFor(model => model.Url)
                            </th>
                            <th ><i class="fa fa-edit"></i>
                                @Html.DisplayNameFor(model => model.Visible)
                            </th>
                            <th>&nbsp;</th>
                        </tr>

                        @foreach (var item in Model)
            {
                            <tr>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Name)
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Seq)
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Icon)
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Url)
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Visible)
                                </td>
                                <td>@Html.ActionLink("Edit", "Edit", new { id = item.Id }, new { @class = "btn btn-primary btn-xs" })      |                             
                                    @Html.ActionLink("Details", "Details", new { id = item.Id }, new { @class = "btn btn-success btn-xs" }) |
                                    @Html.ActionLink("Delete", "Delete", new { id = item.Id }, new { @class = "btn btn-danger btn-xs" })
                                </td>
                            </tr>
                        }
                </table>
            </div>
        </div>
    </section>
    <!-- page end-->
</section>

